package ch01;

public class Client {
    public static void main(String[] args) {
        // 创建加法操作
        YunSuan addition = Main.createOperation("+");
        double result1 = addition.calculate(5, 3);
        System.out.println("Addition result: " + result1);

        // 创建减法操作
        YunSuan subtraction = Main.createOperation("-");
        double result2 = subtraction.calculate(8, 4);
        System.out.println("Subtraction result: " + result2);
    }
}
